﻿#include "saveimgthread.h"

SaveImgThread::SaveImgThread(QObject *parent) : QObject(parent)
{
    m_worker = new SaveImgWorker();
    m_worker->moveToThread(&m_workThread);
    connect(this, &SaveImgThread::sigInitialize, m_worker, &SaveImgWorker::Initialize);
    connect(&m_workThread, &QThread::finished, m_worker, &QObject::deleteLater);
    m_workThread.start();
}

SaveImgThread::~SaveImgThread()
{

}


void SaveImgThread::Initialize()
{
    emit sigInitialize();
}

